import runpy
import sys


def main():
    # Delegate execution to try_plot.py which contains the full runner logic.
    runpy.run_path('try_plot.py', run_name='__main__')


if __name__ == '__main__':
    try:
        main()
    except SystemExit as e:
        # Propagate exit code if raised
        code = e.code if isinstance(e.code, int) else 0
        sys.exit(code)
    except Exception:
        # On unexpected errors, exit with non-zero code
        sys.exit(1)
